<?php
//6666666666666
function p($data){
    echo '<pre>';
    if(is_array($data) || is_object($data)){
        print_r($data);
    }else{
        var_dump($data);
    }
    echo '</pre>';
}

defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'dev');

require __DIR__ . '/../../vendor/autoload.php';
require __DIR__ . '/../../vendor/yiisoft/yii2/Yii.php';
require __DIR__ . '/../../common/config/bootstrap.php';
require __DIR__ . '/../../backend/config/bootstrap.php';

$config = yii\helpers\ArrayHelper::merge(
    require __DIR__ . '/../../common/config/main.php',
    require __DIR__ . '/../../common/config/main-local.php',
    require __DIR__ . '/../../backend/config/main.php',
    require __DIR__ . '/../../backend/config/main-local.php'
);

//实例化一个应用程序
//调用父类 yii\base\Application类的构造函数__construct($config)
$application= new yii\web\Application($config);




//执行运行
$application->run();

//(new yii\web\Application($config))->run();
